{% extends '::base.html.twig' %} 
{% block title %}Licencias :: Nuevo{% endblock %}

{% block module_name %}Licencias{% endblock %}

{% block body %}
<h2>Formulario</h2>
<div class="widget_inside records_list">
    <div class="form">
        <form action="{{ path('permisos_create') }}" method="post" {{ form_enctype(form) }} id="formID">
            <input type="hidden" name="idContrato" value="{{contrato.id}}" />
            <div class="clearfix">
                <label>Empleado</label>
                <div class="input"><input type="text" value="{{contrato.idTrabajador.nombres}} {{contrato.idTrabajador.apellidos}}" readonly class="large" /></div>
            </div>
            {{ form_widget(form) }}
            <div class="clearfix grey-highlight">
                <div class="input no-label">
                    <button type="submit" class="button blue">Guardar</button>
                    <a href="{{ path('permisos') }}" class="button">Regresar a la Lista</a>
                </div>
            </div>
        </form>
    </div>
</div>
{% endblock %}